//
//  ViewController.m
//  ZFCountdownView
//
//  Created by fyzq on 2021/9/8.
//

#import "ViewController.h"
#import "ZFCountdownView.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    ZFCountdownView *cu = [ZFCountdownView new];
   cu.addSecond(@"秒").addMinute(@"分").addHour(@"时").addDay(@"日");
    ZFTipConfig *config  = [ZFTipConfig new];
    [cu layoutSubview:config];
    cu.translatesAutoresizingMaskIntoConstraints = NO;
    [self.view addSubview:cu];
    [cu startCountDownType:ZFCountdownViewTypeCountDown time:1633116698];
    [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-50-[cu]" options:0 metrics:0 views:NSDictionaryOfVariableBindings(cu)]];
    [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|-150-[cu]" options:0 metrics:0 views:NSDictionaryOfVariableBindings(cu)]];
    
   


    
}

@end
